import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import staticRoutes from './modules/static-routes';
import asyncRoutes from './modules/async-routes';

//合并路由
const routes = staticRoutes.concat(asyncRoutes);
console.log(routes);

//创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;